package com.sweet.test;

import com.sweet.service.IdUtils;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;

/**
 * Created by sweet on 2019/1/25.
 * ---------------------------
 */
public class FileServer extends AbstractVerticle {
  public static void main(String[] args) {
    String s = "" + IdUtils.get().nextId();
    System.out.println(s);
    System.out.println(s.length());
  }
  @Override
  public void start() throws Exception {
    super.start();
    vertx.createHttpServer().requestHandler(r -> {
      r.response().sendFile("C:\\daowei\\zhyq\\ZHYQ\\exportExcel\\77505c37-7032-48cc-8bae-7a9d8c0b564b.xlsx");
    }).listen(9090, i -> {
      System.out.println("ok");
    });
  }
}
